﻿/* PN264 - A Parallel H.264 Encoding Utility
 * Copyright © 2009 PN264 Development Team
 *
 * This software is released the terms and conditions of the MIT License,
 * a copy of which can be found in the License.txt file.
 *
 * Contributors:
 * Will 'AnarkiNet' Shelley (AnarkiNet@gmail.com)
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PN264
{
    /// <summary>
    /// Represents stages in the progression of a <see cref="Task"/>.
    /// </summary>
    public enum TaskStatus
    {
        /// <summary>
        /// The task has not yet been assigned to any worker.
        /// </summary>
        Unassigned = 0x0,
        /// <summary>
        /// The task has been assigned to a worker, but the data for the task
        /// has not yet been sent to the worker.
        /// </summary>
        Waiting,
        /// <summary>
        /// The worker has received all the data needed to start the task.
        /// </summary>
        Submitted,
        /// <summary>
        /// The task is being processed by the worker, but the result of the
        /// processing has not been sent back to the server.
        /// </summary>
        Processing,
        /// <summary>
        /// The worker has completed sending of the result data back to the
        /// server.
        /// </summary>
        Retrieved,
        /// <summary>
        /// The task is done.
        /// </summary>
        Done,
    }
}
